package sys

import (
	logic "pd/server/app/auth/logic/sys"
)

type Server struct{}

// 根据refer获取系统id、名称
func (s *Server) GetSysIdAndNameByRefer(referer string) (int64, string, error) {
	sysLogic := logic.SysLogic{}
	return sysLogic.GetSysIdAndNameFromDomain(referer)
}

// 根据refer获取系统id
func (s *Server) GetSysIdByRefer(referer string) (int64, error) {
	sysLogic := logic.SysLogic{}
	return sysLogic.GetSysIdFromDomain(referer)
}
